﻿using MeetAI.Model;
using MeetAI.Model.DTO;
using MeetAI.Model.VO;
using MeetAI.Utility.Table;
using System;
using System.Linq.Expressions;
using System.Threading.Tasks;

namespace MeetAI.Repository.IRepository
{
	public interface IDy_Article_Repository : IBaseRepository<dy_article>
    {
		/// <summary>
		/// 根据条件查询分页数据
		/// </summary>
		/// <param name="predicate"></param>
		/// <param name="orderBy"></param>
		/// <param name="pageIndex">当前页面索引</param>
		/// <param name="pageSize">分布大小</param>
		/// <returns></returns>
		Task<IPagedList<dy_article_index_vo>> getArticlePageList(Expression<Func<dy_article, bool>> predicate, string orderBy = "", int pageIndex = 1, int pageSize = 20);
	}
}
